{extend name="layout" /}
{block name="body"}
<main role="main" class="flex-shrink-0">
  <div class="container">
    <div class="row pt-3">
      <div class="index-focus col-md-12">
        <div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel">
          <ol class="carousel-indicators">
            {volist name="advert_list" id="advert"}
            <li data-target="#carouselExampleIndicators" data-slide-to="{$key}" {if condition="$key == 0"}class="active"{/if}></li>
            {/volist}
          </ol>
          <div class="carousel-inner">
            {volist name="advert_list" id="advert"}
            <div class="carousel-item {if condition="$key == 0"} active{/if}">
              <a href="{$advert.link}" target="_blank"><img src="{$advert.pic}" alt="{$advert.alt}"></a>
            </div>
            {/volist}
          </div>
          
          <a class="carousel-control-prev" href="#carouselExampleIndicators" role="button" data-slide="prev"><span class="carousel-control-prev-icon" aria-hidden="true"></span><span class="sr-only">Previous</span></a>
          <a class="carousel-control-next" href="#carouselExampleIndicators" role="button" data-slide="next"><span class="carousel-control-next-icon" aria-hidden="true"></span><span class="sr-only">Next</span></a>
        </div>
      </div>
    </div>
    <h5 class="index-manual-title py-3 clearfix">
      <span class="index-list-types float-right">
        {volist name="manual_types" id='typeVo'}
        <a href="{:url('/manual/list_'.$typeVo['id'])}" class="m-l-5">{$typeVo.title}</a>
        {/volist}
      </span>
      最新手册
    </h5>
    <div class="row index-manual-list">
      {volist name="manual_list" id="manualVo"}
      <div class="col-6 col-sm-4 col-md-3 col-xl-2 mb-3">
        <a href="{:url('/manual/'.$manualVo['route_name'])}">
          <img class="img-thumbnail mb-2" src="{$manualVo.cover|get_file_path}" alt="{$manualVo.title}" />
          <h6 class="fs-14">{$manualVo.title}</h6>
        </a>
      </div>
      {/volist}
    </div>
    <h5 class="index-manual-title py-3 clearfix">
      <span class="index-list-types float-right">
        {volist name="article_types" id='arctVo'}
        <a href="{$arctVo['column_url']}" class="m-l-5">{$arctVo.title}</a>
        {/volist}
      </span>
      最新文章
    </h5>
    <ul class="row list-unstyled index-articel-list">
      {volist name="article_list" id="articleVo"}
      <li class="col-12 col-sm-6 col-md-4 text-truncate">
        <a href="{:url('/article/'.$articleVo['id'])}" title="{$articleVo.title}">{$articleVo.title}</a>
         | 
       <a href="{$articleVo.column_url}">{$articleVo.column_title}</a>
      </li>
      {/volist}
    </ul>
  </div>
</main>
{/block}